﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using Vision.Common;

namespace Vision.Utilities.CMS6UpdateTool
{
    public class AutoUpdateProcessorConfigurationElement<T> : GenericNameTypeData<T>
        where T : IUpdateProcessor
    {
        #region Const
        const string OrderPropertyName = "order";
        #endregion

        #region Ctors
        public AutoUpdateProcessorConfigurationElement()
            : base()
        {
        }

        public AutoUpdateProcessorConfigurationElement(string name, Type type)
            : base(name, type)
        {
        }
        #endregion

        #region Properties
        [ConfigurationProperty(OrderPropertyName)]
        public int Order 
        {
            get { return (int)this[OrderPropertyName]; }
            set { this[OrderPropertyName] = value; }
        }
        #endregion
    }
}